<template>
    <div class="set">
        <van-nav-bar title="设置" left-text="返回" left-arrow @click-left="$router.go(-1)" />
        <div class="mt-10">
            <van-cell title="账号" is-link value="内容" />
            <van-cell title="密码" is-link value="未设置" />
            <van-cell title="缓存" is-link value="立即清除" />
            <van-cell title="关于" is-link value="内容" />
        </div>
        <div class="fixed bo0 w100p h50 bfff fcc cc03131" @click="exit">
            <span>退出登录</span>
        </div>
    </div>
</template>

<script>
import Vue from 'vue';
import { Cell, CellGroup, NavBar, } from 'vant';

Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(NavBar);
export default {
    data() {
        return {

        };
    },
    methods: {
        exit() {
            this.$store.commit('set_phone', '');
            this.$store.commit('set_token', '');
            this.$store.commit('set_addr', []);
            this.$router.push('/my')
        }
    }
};
</script>

<style scoped></style>